   <!-- Content Bar Header -->
      <?php
      //userQueries::userLevel("1");
      $auth = Auth::getAuth('current_user');
         if($auth['user_level_id']=="2"){
            echo $this->setInclude("contentHeader",null,null,null);
         }
         //echo notifications::inserNotification("like","tblike",$auth,array("postID"=>"323"),"comment");
      ?>
<div class="content_wrapper">
   <div class="mainContent">
      <div>
         <div class="widget">
            <div class="head">
               <div class="title_head">
                  <i class="icon-file"></i> Summary Notifications
               </div>
               <div class="right_bar_content">
                     <img src="/images/loader/load.gif" class="loading display" style="margin-right:10px;"/>  
               </div>
            </div>
            <div class="pull-left length12" style="min-height: 1000px;">
               <div class="padding_5">
               <?php
			  phpinfo(); 
			  return;
			  
                  $db = new Database();
                  $getUser = $db->query("SELECT * FROM tbuser WHERE is_active={$db->escape(1)}","array");
                  foreach($getUser as $user){
                     
                     $noti_mention_post = $db->query("SELECT * FROM tbnotification WHERE
                                        userID={$db->escape($user['id'])}
                                        AND user_read={$db->escape(0)}
                                        AND is_active={$db->escape(1)}
                                        AND type={$db->escape(1)}","numrows");
                     $noti_comment_post = $db->query("SELECT * FROM tbnotification WHERE
                                        userID={$db->escape($user['id'])}
                                        AND user_read={$db->escape(0)}
                                        AND is_active={$db->escape(1)}
                                        AND type={$db->escape(2)}","numrows");
                     $noti_like_post = $db->query("SELECT * FROM tbnotification WHERE
                                        userID={$db->escape($user['id'])}
                                        AND user_read={$db->escape(0)}
                                        AND is_active={$db->escape(1)}
                                        AND type={$db->escape(3)}","numrows");
                     $noti_like_comment = $db->query("SELECT * FROM tbnotification WHERE
                                        userID={$db->escape($user['id'])}
                                        AND user_read={$db->escape(0)}
                                        AND is_active={$db->escape(1)}
                                        AND type={$db->escape(4)}","numrows");
                     $noti_request = $db->query("SELECT * FROM tbnotification WHERE
                                        userID={$db->escape($user['id'])}
                                        AND user_read={$db->escape(0)}
                                        AND is_active={$db->escape(1)}
                                        AND type={$db->escape(5)}","numrows");
                     $noti_mention_comment = $db->query("SELECT * FROM tbnotification WHERE
                                        userID={$db->escape($user['id'])}
                                        AND user_read={$db->escape(0)}
                                        AND is_active={$db->escape(1)}
                                        AND type={$db->escape(6)}","numrows");
                     $noti_task_Ateam = $db->query("SELECT * FROM tbnotification WHERE
                                        userID={$db->escape($user['id'])}
                                        AND user_read={$db->escape(0)}
                                        AND is_active={$db->escape(1)}
                                        AND type={$db->escape(10)}","numrows");
                     $noti_task_Eteam = $db->query("SELECT * FROM tbnotification WHERE
                                        userID={$db->escape($user['id'])}
                                        AND user_read={$db->escape(0)}
                                        AND is_active={$db->escape(1)}
                                        AND type={$db->escape(11)}","numrows");
                     $noti_task_Vteam = $db->query("SELECT * FROM tbnotification WHERE
                                        userID={$db->escape($user['id'])}
                                        AND user_read={$db->escape(0)}
                                        AND is_active={$db->escape(1)}
                                        AND type={$db->escape(12)}","numrows");
                     $noti_task_due = $db->query("SELECT * FROM tbnotification WHERE
                                        userID={$db->escape($user['id'])}
                                        AND user_read={$db->escape(0)}
                                        AND is_active={$db->escape(1)}
                                        AND type={$db->escape(13)}","numrows");
                     $msg = userQueries::countMsg($user['id']);
                     //echo "ID" . $user['id'] . "=== (Mention) = " . $noti_mention_post . " (Comment) = " . $noti_comment_post;
                     //echo " (Like Post) = " . $noti_like_post . " (Like Comment) = " . $noti_like_comment;
                     //echo " (Request) = " . $noti_request . " (Mention Comment) = " . $noti_mention_comment;
                     //echo " (Added Team) = " . $noti_task_team . " (Editor Team) = " . $noti_task_Eteam;
                     //echo " (Viewer Team) = " . $noti_task_Vteam . " (Due Date) = " . $noti_task_due;
                     //echo " (Msg) =" . $msg;
                     //echo "<br>";
                     $noti = array("Tadded"              =>          $noti_task_team,
                                   "Tview"               =>          $noti_task_Vteam,
                                   "Tedit"               =>          $noti_task_Eteam,
                                   "Tdue"                =>          $noti_task_due,
                                   "Msg"                 =>          $msg,
                                   "Lpost"               =>          $noti_like_post,
                                   "Lcomment"            =>          $noti_like_comment,
                                   "request"             =>          $noti_request);
                     $json_decode = Settings::noti_settings($user['id'],'notifications');
                     $json_notifications = $json_decode[0]['notifications'];
                     $json_n = $json_notifications['Comment'];
                     if($json_n[1]=="1"){
                        echo Mail_Notification::email_prompt_notifications(array($user['email']=>$user['display_name']),$user['first_name'] . " " . $user['last_name'],$getUser,$noti);
                     }
                  }
               ?>
               </div>
            </div>
         </div>
      </div>
   </div>
   <?php
      // Company Announcement
         echo $this->setInclude("company_announcement",null,null,null);
         
      // Starred
         echo $this->setInclude("starred",null,null,null);
         
      // My Request
         echo $this->setInclude("my_request",null,null,null);
   
   ?>
</div>